package com.lagou.edu.utils;

public class ResultMode {

	private int code = 1;
	private String errorCode;
	private Object result;
	private String msg;

	public ResultMode() {
	}

	public ResultMode(int code) {
		this.code = code;
	}

	public ResultMode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public ResultMode(int code, Object result) {
		this.code = code;
		this.result = result;
	}

	public ResultMode(int code, String msg, Object result) {
		this.code = code;
		this.msg = msg;
		this.result = result;
	}

	public ResultMode(int code, String errorCode, String msg) {
		this.code = code;
		this.errorCode = errorCode;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
